package dataobjects;

public enum Category {
	GENERAL(1,"general"), 
	EVENTS(2, "events"), 
	FUNNY(3, "funny"),
	SPORTS(4, "sports"),
	ART(5, "art"),
	MUSIC(6, "music"),
	FAMILY(7, "family"),
	MOVIES(8, "movies");
	
	
	//int category_id;
	//String resourceId;
	final  String CATEGORY_TEXT_PREFIX = "category_name_";
	final  String CATEGORY_IMAGE_PREFIX = "category_ic_";
	boolean isSelected = false;
	
	long category_id;
	String category_name;
	String category_text_id;
	String category_image_id;
	
	Category(long id, String name) {

		this.category_id = id;
		this.category_name = name;
		this.category_text_id = CATEGORY_TEXT_PREFIX +name;
		this.category_image_id = CATEGORY_IMAGE_PREFIX +name;
		//this.resourceId = resourceFilePath;
	}
	
	public long getID() {
		return this.category_id;
	}
	
	public String getName() {
		return this.category_name;
	}
	
	public String getTextId() {
		return this.category_text_id;
	}
	
	public String getImageId() {
		return this.category_image_id;
	}
	
	public void setSelected() {
		this.isSelected = true;
	}
	
	public void setUnselected() {
		this.isSelected = false;
	}
	
	public boolean isSelected() {
		return isSelected;
	}
	
	//public String getResourceId() {
	// 	return this.resourceId;
	//}
}
